package org.dromara.tearoom.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户消息订阅对象 ter_user_subscription
 *
 * @author ckj
 * @date 2025-04-19
 */
@Data
@TableName("ter_user_subscription")
public class TerUserSubscription implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 用户openId
     */
    private String openId;

    /**
     * 模版ID
     */
    private String templateId;

    /**
     * 是否订阅
     */
    private Integer subscribed;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
